<template>
  <div>
    <div
      v-for="(item, index) in arr"
      :key="index"
      style="display: inline-block; margin: 100px 20px"
    >
      <input type="checkbox" v-model="checkV" :value="item" />
      <span>{{ item }}</span>
    </div>
    <ul>
      <li v-for="(item, index) in checkV" :key="index">
        <span>{{ item }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      checkV: [],
    };
  },
};
</script>

<style>
</style>